package cn.HuanG.user.controller;

import cn.HuanG.user.service.IWxUserService;
import cn.HuanG.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/wxUser")
public class WxUserController {
    @Autowired
    private IWxUserService wxUserService;

    @PostMapping("/wxUserLogin")
    public AjaxResult wxUserLogin(@RequestBody Map<String, String> map){
        return wxUserService.wxLogin(map);

    }
    @PostMapping("/bind")
    public AjaxResult bind(@RequestBody Map<String, String> map){
        return wxUserService.bind(map);

    }

}
